package entities;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "currency")
public class Currency
{
	@Id
	private String	currency_code;
	private String	currency_name;

	public Currency()
	{
	}

	public Currency(String currency_code, String currency_name)
	{
		super();
		this.currency_code = currency_code;
		this.currency_name = currency_name;
	}

	public String getCurrency_code()
	{
		return currency_code;
	}

	public void setCurrency_code(String currency_code)
	{
		this.currency_code = currency_code;
	}

	public String getCurrency_name()
	{
		return currency_name;
	}

	public void setCurrency_name(String currency_name)
	{
		this.currency_name = currency_name;
	}

	@Override
	public String toString()
	{
		return currency_name + " (" + currency_code + ")";
	}

}
